<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="./lib/vue.js"></script>
</head>
<body>

</body>
<script>
	const vm = new Vue({
		data:{
			username:"zhangsan",
			age:12
		},
		methods:{
			fn(){
				console.log(this.username,this.age);
			}
		}
	});
	vm.fn();
	const fn = vm.fn;
	fn();
	
	
	// const obj = {
	// 	a:100,
	// 	fn(){
	// 		console.log(this);
	// 	}
	// }
	// obj.fn();
	// const fn = obj.fn;
	// fn.bind(obj)();
</script>
</html>